package tablet.module_user.fragment;

import android.graphics.Bitmap;

import com.lib.fastkit.db.shared_prefrences.SharedPreferenceManager;
import com.lib.ui.fragment.BaseWebFragment;
import com.tencent.smtt.sdk.WebView;

import tablet.module_user.R;

public class XieYiFragment extends BaseWebFragment {

    private String url;

    @Override
    protected void myOnPageStarted(WebView webView, String s, Bitmap bitmap) {

    }

    @Override
    protected void myShouldOverrideUrlLoading(WebView webView, String url) {

    }

    @Override
    protected void myOnPageFinished(WebView webView, String s) {

    }

    @Override
    protected void onCreateView(WebView webView) {

        if (!"".equals(SharedPreferenceManager.getInstance(getActivity()).getUserCache().getXieYiUrl())) {
            url = SharedPreferenceManager.getInstance(getActivity()).getUserCache().getXieYiUrl();
        }

        webView.loadUrl(url);

    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_xieyi;
    }

}
